
<%@ page import="com.capgemini.rdlgae.domain.Facture"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<g:set var="entityName"
	value="${message(code: 'facture.label', default: 'Facture')}" />
<title><g:message code="default.list.label" args="[entityName]" /></title>
</head>
<body>
<div class="nav"><span class="menuButton"><g:link
	class="create" action="create">
	<g:message code="default.new.label" args="[entityName]" />
</g:link></span></div>
<div class="body">
<h1><g:message code="default.list.label" args="[entityName]" /></h1>
<g:if test="${flash.message}">
	<div class="message">
	${flash.message}
	</div>
</g:if>
<div class="list">
<table>
	<thead>
		<tr>

			<g:sortableColumn property="id"
				title="${message(code: 'facture.id.label', default: 'Id')}" />

			<g:sortableColumn property="dateEdition"
				title="${message(code: 'facture.dateEdition.label', default: 'Date Edition')}" />

			<g:sortableColumn property="total"
				title="${message(code: 'facture.total.label', default: 'Total')}" />

		</tr>
	</thead>
	<tbody>
		<g:each in="${factureInstanceList}" status="i" var="factureInstance">
			<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

				<td><g:link action="show" id="${factureInstance.id}">
					${fieldValue(bean: factureInstance, field: "id")}
				</g:link></td>


				<td><g:formatDate date="${factureInstance.dateEdition}" /></td>

				<td><g:formatNumber number="${factureInstance.total}"
					format="0 €" /></td>

			</tr>
		</g:each>
	</tbody>
</table>
</div>
<div class="paginateButtons"><g:paginate
	total="${factureInstanceTotal}" /></div>
</div>
</body>
</html>
